import request from '@/utils/request'

// 查询满额活动列表
export function listDoorsillActivity(query) {
  return request({
    url: '/csmshop/doorsillActivity/list',
    method: 'get',
    params: query
  })
}

// 查询满额活动详细
export function getDoorsillActivity(daId) {
  return request({
    url: '/csmshop/doorsillActivity/' + daId,
    method: 'get'
  })
}

// 新增满额活动
export function addDoorsillActivity(data) {
  return request({
    url: '/csmshop/doorsillActivity',
    method: 'post',
    data: data
  })
}

// 修改满额活动
export function updateDoorsillActivity(data) {
  return request({
    url: '/csmshop/doorsillActivity',
    method: 'put',
    data: data
  })
}

// 删除满额活动
export function delDoorsillActivity(daId) {
  return request({
    url: '/csmshop/doorsillActivity/' + daId,
    method: 'delete'
  })
}

// 关闭满额活动
export function closeDoorsillActivity(daId) {
  return request({
    url: '/csmshop/doorsillActivity/close/' + daId,
    method: 'put'
  })
}